
.clearfix::after{
  display: block;
  content: '';
  clear: both;
}

.header{
  width: 1200px;
  height: 45px;
  margin: 0 auto;
  border-bottom: 1px solid #eee;
  .header-l{
    float: left;
    height: 45px;
    font-size: 12px;
    p{
      display: inline-block;
      line-height: 45px;
    }
    .notice{
      color: red
    }
    .collection{
      padding: 0 10px;
      a{
        color: #555;
      }
      a:hover{
        color: #222;
      }
    }
  }
  .header-r{
    float: right;
    font-size: 14px;
    ul{
      height: 45px;
      line-height: 45px;
      li{
        float: left;
        a{
          padding: 0 10px;
          border-right: 1px solid #e4e4e4;
          color: #555;
        }
        a.b-r{
          border-right: 0;
        }
        a:hover{
          color: #222;
        }
      }
    }
  }
}

.main{
  width: 1200px;
  margin: 0 auto 60px;
  font-family: "SimHei";
  .main-top{
    .logo{
      float: left;
      height: 95px;
      img{
        margin-top: 16px;
      }
    }
    .nav{
      float: left;
      ul{
        margin-top: 40px;
        margin-left: 70px;
        li{
          float: left;
          height: 20px;
          //padding: 0 12px;
          a{
            display: inline-block;
            height: 20px;
            font-size: 20px;
            font-weight: 600;
            line-height: 20px;
            vertical-align: middle;
            color: #444;
          }
          a.active{
            color: #ff9501;
          }
          i{
            display: inline-block;
            width: 7px;
            height: 20px;
            margin: 0 16px;
            vertical-align: middle;
            background: url("../img/line.gif");
          }
        }
      }
    }
    .search{
      float: right;
      width: 250px; height: 50px;
      margin-top: 24px;

      border: 2px solid #ff9501;
      border-radius: 27px;
      input{
        float: left;
        width: 180px;
        height: 30px;
        border: 0;
        margin-top: 9px;
        margin-left: 15px;
        background: #fff;
        outline: none;
        font-size: 18px;
        font-weight: bold;
      }
      a{
        float: right;
        width: 50px;
        height: 50px;
        background: url("../img/search.gif") no-repeat 6px 8px;
      }
    }
  }

  .mian-show {
    height: 361px;
    p {
      color: #969696;
      height: 66px;
      line-height: 70px;
      font-size: 16px;
      padding-left: 26px;
      background: url("../img/home.png") no-repeat 4px center;
    }
    .layui-carousel {
      height: 295px;
      background: #ccc;
    }
  }

  .main-content {
    margin-top: 22px;
    height: 1562px;
    .container {
      box-shadow: 0 0 2px 1px #f6f6f6;
      border-radius: 8px;
      width: 828px;
      float: left;
      background: #fff;
      height: 100%;
      .topic {
        height: 128px;
        margin: 0 12px 0 15px;
        padding: 24px 0 18px 0;
        .topic-show { 
          float: left;
          border: 1px solid #fff;
          img {
            height: 126px;
            width:252px;
          }
          &:hover {
            border-color: #ff9500;
          }
        }
        .introduce {
          float: left;
          width: 528px;
          margin-left: 18px;
          h5 {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            font-size: 20px;
            line-height: 30px;
            a:hover{
                text-decoration: underline;
                color: #ff9500;
            }
          }
          p {
            line-height: 20px;
            font-size: 12px;
            margin-top: 8px;
            overflow: hidden;
            color: #808080;
          }
          .text {
            height: 60px;
            text-indent: 24px;
          }
        }
      }
      .topic+.topic {
        border-top: 1px dashed #ddd;
      }
    }
    .aside {
      float: right;
      width: 350px;
      background: #fff;
      height: 100%;
      .title {
        padding-top: 6px;
        height: 50px;
        line-height: 50px;
        padding-left: 42px;
        font-size: 26px;
        color: #676767;
        border-bottom: 3px solid #ff9500;
        span {
          float: right;
          font-size: 12px;
          margin-right:8px; 
        }
      }
      .hot-topic {
        height: 1022px;
        padding-left: 18px;
        border-radius: 8px;
        box-shadow: 0 0 2px 1px #f6f6f6;
        .title{
          background: url("../img/topic.png") no-repeat 0 14px;
        }
        .item {
          position: relative;
          margin-right: 20px;
          .item-show {
            display:block;
            margin-top: 12px;
            img {
              width: 312px;
              height: 146px;
            }
          }
          p {
            width: 100%;
            position: absolute;
            font-size: 14px;
            color: #fff;
            bottom: 0;
            line-height: 50px;
            height: 50px;
            text-align: center;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            z-index: 99;
            background: url("../img/opacity.png");
          }
        }
      }
      .hot-game {
        margin-top: 10px;
        height: 530px;
        padding-left: 18px;
        border-radius: 8px;
        box-shadow: 0 0 2px 1px #f6f6f6;
        .title {
          background: url("../img/game-hot.png") no-repeat 0 14px;
        }
        ul {
          li {
            padding-top: 8px;
            .left {
              float: left;
              display: none;
              .hover-img {
                display:block;
                img{
                  width: 76px;
                  height: 76px;
                }
              }
            }
            .right{
              width: 100%;
              float: left;
              span {
                display: block;
                overflow: hidden;
                white-space: nowrap;
              }
              .game-name {
                float: left;
                width: 60%;
                padding-left: 18px;
                background: url("../img/li.png") no-repeat 2px center;
                line-height: 32px;
                font-size: 16px;
                a {
                  color: #333;
                }

              }
              .game-type {
                float: right;
                width: 20%;
                text-align: center;
                line-height: 32px;
                font-size: 14px;
                a {
                  color: #b2b2b2;
                }
              }
              .game-heat {
                display: none;
                font-size: 14px;
                color: #b2b2b2;
                em {
                  color: #ff0000;
                }
              }
            }
          }
          li.hover {
            padding-bottom: 8px;
            border-bottom: 1px dashed #e8e8e8;
            .left {
              display: block;
            }
            .right{
              width: 60%;
              padding-left: 14px;
              .game-name {
                float: none;
                width: 100%;
                padding: 0;
                background: none;
                font-weight: bold;
              }
              .game-type {
                float: none;
                width: 100%;
                text-align: left;
                line-height: 22px;
              }
              .game-heat {
                display: block;
                line-height: 22px;
              }
            }
          }
        }
      }
    }
  }

}

.footer{
  width: 100%;
  height: 132px;
  background: #333333;
  .footer-content {
    color: #e6e0d8;
    font-size: 14px;
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    div {
      float: left;
    } 
    .aboutUs {
      padding: 22px 0 0 40px;
      p {
        span {
          line-height: 30px;
          height: 30px;
          float:left;
        }
        .licence2 {
          padding-left: 20px;
          background: url("../img/police.png") no-repeat 0 3px;
          background-size: 18px;
        }
      }
      .link {
        height: 14px;
        padding: 8px 0;
        li {
          height: 100%;
          float: left;
          line-height: 18px;
          padding-right: 12px;
          a {
            color: #e6e0d8;
          }
        }
        li+li {
          border-left: 1px solid #e6e0d8;
          padding-left: 12px;
        }
      }
      .copyright {
        li {
          height: 30px;
          line-height: 30px;
          float:left;
          padding-right: 12px;
        }
        .licence1 {
          padding-left: 17px;
          background: url("../img/ghs.png") no-repeat 0 5px;
          background-size: 17px;
        }
      }
    }
    .code {
      padding-left: 46px;
      width: 118px;
      img{
        display: block;
        margin: 16px auto 0;
        width: 78px;
        height: 78px;
      }
      p {
        line-height: 38px;
        text-align: center;
      }
    }
  }
}
